package jpeg;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;


public class FileHandler {
	
	private FileInputStream input;
	private FileWriter output;
	
	public File getFile(String location){
		File file = new File(location);
		try {
			setInput(new FileInputStream(file));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public void saveFile(File file){
		try {
			output = new FileWriter(file);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		
	}

	public void setInput(FileInputStream input) {
		this.input = input;
	}

	public FileInputStream getInput() {
		return input;
	}



}
